﻿using LJ.Abstractions.Config;
using LJ.Abstractions.Thread;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LJ.Abstractions;

public interface IAppProvider
{
    /// <summary>
    /// 选项模式提供器
    /// </summary>
    public IConfigProvider ConfigProvider { get; }

    /// <summary>
    /// 服务提供器
    /// </summary>
    public IServiceProvider ServiceProvider { get; }

    /// <summary>
    /// 异步任务取消标识提供器
    /// </summary>
    public ICancellationTokenProvider CancellationTokenProvider { get; }

    /// <summary>
    ///  获取日志
    /// </summary>
    /// <typeparam name="T"></typeparam>
    /// <returns></returns>
    public ILogger GetLogger<T>();
}
